Modal-Dialog Filter Functions
TheCustomGetFilePreview
routine presents an Open dialog box to the user and allows the user to view file previews. This function differs fromStandardGetFilePreview
in that you can provide a custom dialog template and functions to support your template. This function corresponds to the existingCustomGetFile
routine.You specify your modal-dialog filter function in the
filterProc
parameter. Your modal-dialog filter function gives you greater control over the interface presented to the user. See Inside Macintosh: Files for more information about using modal-dialog filter functions withCustomGetFile
.
- Note
- A modal-dialog filter function controls events closer to their source by filtering the events received from the Event Manager. The Standard File Package itself contains an internal modal-dialog filter function that maps keypresses and other user input onto the equivalent dialog box items. If you also want to process events at this level, you can supply your own filter function.
![]()
Subtopics
- MyModalFilter